# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo9.07
# Description:
# Author:       $赵怡蕾
# Date:         2019/3/5
#-------------------------------------------------------------------------------

while True:
    try:
        x = int(input("请输入分子："))
        y = int(input("请输入分母："))
        value = x / y
        print('x / y is',value)
    except Exception as e:
        print('不正确的输入：',e)
        print('请重新输入')

    else:
        break                 # 没有抛出任何异常，直接退出while循环